const express = require("express");
const overviewRouter = express.Router();
const overviewController = require("../Controller/overview");

// 发布消息
overviewRouter.get(
  "/getCategoryAndNumber",
  overviewController.getCategoryAndNumber
);
// 获取管理员与用户总数
overviewRouter.get(
  "/getAdminAndUserCount",
  overviewController.getAdminAndUserCount
);
// 获取消息等级和总数
overviewRouter.get(
  "/getMessageLevelCount",
  overviewController.getMessageLevelCount
);
// 每日登录数量
overviewRouter.get("/getloginCount", overviewController.getloginCount);

module.exports = overviewRouter;
